<?php

namespace App\Models\Personnel;

use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PersonnelFamily extends Model
{
    protected $table = 'akbus_personnel_family';

    protected $fillable = [
        'name',
        'relationship',
        'work_unit',
        'phone',
    ];

    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    public function personnel(): BelongsTo
    {
        return $this->belongsTo(Personnel::class);
    }
}
